﻿using System;
using System.Data;
using EAS.Data.Access;
using EAS.Data.ORM;
using System.Runtime.Serialization;

namespace DataStudio
{
    [Serializable, Index, Table("EAS_GROUP_MODULES")]
    partial class GroupModule : DataEntity<GroupModule>
    {
        // Methods
        public GroupModule()
        {
        }

        protected GroupModule(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        // Properties
        [Column("ASSEMBLY", "程序集")]
        public string Assembly
        {
            get
            {
                return base.GetValue<string>("ASSEMBLY");
            }
            set
            {
                base["ASSEMBLY"] = value;
            }
        }

        [Column("DESCRIPTION", "说明")]
        public string Description
        {
            get
            {
                return base.GetValue<string>("DESCRIPTION");
            }
            set
            {
                base["DESCRIPTION"] = value;
            }
        }

        [Column("DEVELOPER", "开发者")]
        public string Developer
        {
            get
            {
                return base.GetValue<string>("DEVELOPER");
            }
            set
            {
                base["DEVELOPER"] = value;
            }
        }

        [Column("GROUPID", "分组ID")]
        public int GroupID
        {
            get
            {
                return base.GetValue<int>("GROUPID");
            }
            set
            {
                base["GROUPID"] = value;
            }
        }

        [PrimaryKey, Column("GROUPNAME", "分组名称")]
        public string GroupName
        {
            get
            {
                return base.GetValue<string>("GROUPNAME");
            }
            set
            {
                base["GROUPNAME"] = value;
            }
        }

        [PrimaryKey, Column("GUID", "模块Guid")]
        public string Guid
        {
            get
            {
                return base.GetValue<string>("GUID");
            }
            set
            {
                base["GUID"] = value;
            }
        }

        [Column("ICON", "图标", DbType.Binary)]
        public byte[] Icon
        {
            get
            {
                return base.GetValue<byte[]>("ICON");
            }
            set
            {
                base["ICON"] = value;
            }
        }

        [Column("LMTIME", "更新时间")]
        public DateTime LMTime
        {
            get
            {
                return base.GetValue<DateTime>("LMTIME");
            }
            set
            {
                base["LMTIME"] = value;
            }
        }

        [Column("NAME", "模块名称")]
        public string Name
        {
            get
            {
                return base.GetValue<string>("NAME");
            }
            set
            {
                base["NAME"] = value;
            }
        }

        [Column("PACKAGE", "模块包")]
        public string Package
        {
            get
            {
                return base.GetValue<string>("PACKAGE");
            }
            set
            {
                base["PACKAGE"] = value;
            }
        }

        [Column("SORTCODE", "排序码")]
        public int SortCode
        {
            get
            {
                return base.GetValue<int>("SORTCODE");
            }
            set
            {
                base["SORTCODE"] = value;
            }
        }

        [Column("TYPE", "类型")]
        public string Type
        {
            get
            {
                return base.GetValue<string>("TYPE");
            }
            set
            {
                base["TYPE"] = value;
            }
        }

        [Column("URL", "Url")]
        public string Url
        {
            get
            {
                return base.GetValue<string>("URL");
            }
            set
            {
                base["URL"] = value;
            }
        }

        [Column("VERSION", "版本")]
        public string Version
        {
            get
            {
                return base.GetValue<string>("VERSION");
            }
            set
            {
                base["VERSION"] = value;
            }
        }
    }
}
